import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import { AtButton,AtNavBar } from 'taro-ui'
import './navBar.scss'

export default class NavBar extends Component {

    config = {
      navigationBarTitleText: '首页'
    } 
  
    constructor () {
      super(...arguments)
      this.state = {
      }
    }
    handleClick(){
    }
    render(){
        return(
            <View>
                
                <AtNavBar
                onClickRgIconSt={this.handleClick}
                onClickRgIconNd={this.handleClick}
                onClickLeftIcon={this.handleClick}
                color='#000'
                title='导航栏示例'
                leftText='返回'
                rightFirstIconType='bullet-list'
                rightSecondIconType='user'
                // leftFirstIconType='user' 无效
                fixed
                border

                />
            </View>
        )
    }
}    